package com.wyh.domain.po.gfive;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Invoicedetails {
    /**
     * id值
     */
    private Integer id;
    /**
     * 开票日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("开票日期")
    private LocalDate Invoicingtime;
    /**
     * 图片路径
     */
    @NotEmpty
    @ApiModelProperty("图片路径")
    private String url;
    /**
     * 发票或者收据号码号码
     */
    @NotEmpty
    @ApiModelProperty("发票或者收据号码号码")
    private String Invoicenumber;
    /**
     * 开票金额
     */
    @NotNull
    @ApiModelProperty("开票金额")
    private Double amount;
    /**
     * 类型 0发票 1收据
     */
    @ApiModelProperty("类型 0发票 1收据")
    private Integer type;
    /**
     *  开票 记录id
     */
    @ApiModelProperty("开票 记录id")
    private Integer invoiceId;

    public Invoicedetails(LocalDate invoicingtime, String url, String invoicenumber, Double amount, Integer type, Integer invoiceId) {
        Invoicingtime = invoicingtime;
        this.url = url;
        Invoicenumber = invoicenumber;
        this.amount = amount;
        this.type = type;
        this.invoiceId = invoiceId;
    }
}
